package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      运营-运营管理-SIP集群服实体类。
 * <desc/>
 *
 * @createDate 2017/9/18.
 */
@ItlTables("sip_cluster")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SipClusterPO extends BasePO implements Serializable {

    @ItlField(value = "sip_id", logicKey = "key", notNull = "false")
    private String sipId;  //流媒体服务器ID

    @ItlField("sip_name")
    private String sipName; //sip名称

    @ItlField("sip_address")
    private String sipAddress; //sip地址,域名或IP

    @ItlField("sip_domain")
    private String sipDomain;  //区域ID

    @ItlField("sip_port")
    private Integer sipPort;  //sip端口,默认5060

    @ItlField("country_id")
    private String countryId;  //国家

    @ItlField("turn_server")
    private String turnServer; //穿透服务器地址,域名+:+端口，端口默认为3478

    @ItlField("remark")
    private String remark;  //备注

     /**
      * <desc>
      *      构造函数。
      * <desc/>
      *
      * @param  sipId
      * @param  sipName
      * @param  sipAddress
      * @param  sipDomain
      * @param  sipPort
      * @param  countryId
      * @param  turnServer
      * @param  remark
      * @return
      * @author shengen.T
      * @createDate 2017/10/24
      */
    public SipClusterPO(String sipId,
                        String sipName,
                        String sipAddress,
                        String sipDomain,
                        Integer sipPort,
                        String countryId,
                        String turnServer,
                        String remark ){
        this.sipId =sipId;
        this.sipName = sipName;
        this.sipAddress = sipAddress;
        this.sipDomain = sipDomain;
        this.sipPort =sipPort;
        this.countryId = countryId;
        this.turnServer = turnServer;
        this.remark = remark;

    }

}
